﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DateiaftenLibTest;
using System.Collections.Generic;
using System.Linq;

namespace DateiaftenLibUnittest
{
    [TestClass]
    public class DatenightBLLTest
    {
        DatenightBLL datenightBLL = DatenightBLL.Instance;
        PersonBLL personBLL = PersonBLL.Instance;
        CityBLL cityBLL = CityBLL.Instance;

        [TestMethod]
        public void ReturnSearchList()
        {
            aspnet_User user = new aspnet_User();
            user.UserName = "Hans";
            aspnet_User currentUser = personBLL.getCurrentUser(user);
            string gender = "Mand";
            City CityFrom = cityBLL.FindCityByNameAndZipcode("Aalborg", "9000");

            List<City> Citys = cityBLL.FindCitysWithinDistance(CityFrom, 50);

            var list = datenightBLL.returnSearchList(currentUser, gender, Citys, "");

            Assert.IsNotNull(list);
        }
    }
}
